]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[ShellApp] Fix handler signature for workspace switch
authorColin Walters <walters@verbum.org>
Thu, 15 Oct 2009 17:52:17 +0000 (13:52 -0400)
committerColin Walters <walters@verbum.org>
Thu, 15 Oct 2009 18:05:19 +0000 (14:05 -0400)
This was causing crashes or undefined behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=598227

src/shell-app.c

index 6ce0983803f0e8d6003c6c507c9d054f158814a0..bc87a1261361375e9f7ee75dea1edc4056790cde 100644 (file)
@@ -243,8 +243,13 @@ shell_app_on_unmanaged (MetaWindow      *window,
 }
 
 static void
-shell_app_on_ws_switch (ShellApp   *self)
+shell_app_on_ws_switch (MetaScreen         *screen,
+                        int                 from,
+                        int                 to,
+                        MetaMotionDirection direction,
+                        gpointer            data)
 {
+  ShellApp *self = SHELL_APP (data);
   self->window_sort_stale = TRUE;
   g_signal_emit (self, shell_app_signals[WINDOWS_CHANGED], 0);
 }